package com.zhiyou100.service.impl;

import com.zhiyou100.entity.Lessee;
import com.zhiyou100.mapper.LesseeMapper;
import com.zhiyou100.service.LesseeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 租客信息 服务 实现类
 *
 * @author yang
 * @version 1.0.0
 * @date 2020-08-31 10:23
 */
@Service
public class LesseeImpl implements LesseeService {
    private LesseeMapper lesseeMapper;

    @Autowired
    public void setLesseeMapper(LesseeMapper lesseeMapper) {
        this.lesseeMapper = lesseeMapper;
    }

    @Override
    public List<Lessee> listLessees() {
        return lesseeMapper.listLessees();
    }

    @Override
    public Lessee selectOneByLid(Integer lid) {
        return lesseeMapper.selectOneByLid(lid);
    }

    @Override
    public void updateOneLessee(Lessee lessee) {
        lesseeMapper.updateOneLessee(lessee);
    }

    @Override
    public void deleteOneByCid(Integer cid) {
        lesseeMapper.deleteOneByCid(cid);
    }

    @Override
    public void insertOne(Lessee lessee) {
        lesseeMapper.insertOne(lessee);
    }
}
